<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>detail</title>
    <!-- Bootstrap -->	
  </head>
  <body>
  <script src="/SmartCommunity/js/pc/jquery.js"></script>
  <script type="text/javascript">
var v = parseUrl();//解析所有参数
var info_id=v['id'];
 alert("hello:"+info_id);
 $.ajax({
	type: "POST",
		url: "",
		data:{id:info_id},
		contentType: "application/json; charset=utf-8", 
		success: function(data){
			var arr = eval('(' + data + ')');
				$("body").html(arr.content);
		},
		error: function(){
		alert("error");
		} 
 });
 function parseUrl(){
                var url=location.href;
                var i=url.indexOf('?');
                if(i==-1)return;
                var querystr=url.substr(i+1);
                var arr1=querystr.split('&');
                var arr2=new Object();
                for  (i in arr1){
                    var ta=arr1[i].split('=');
                    arr2[ta[0]]=ta[1];
                }
                return arr2;
            }
</script>
    </body> 
</html>